package com.study.quiz.service;

import com.study.quiz.dto.NotifictionDTO;
import com.study.quiz.dto.PageDTO;
import com.study.quiz.pojo.Notification;
import com.study.quiz.pojo.User;

/**
 * @author CJunGod
 * @create 2020-03-13 19:48
 **/
public interface NotifictionService {

    Integer insert(Notification notification);

    PageDTO findByUserId(Integer userId, Integer page, Integer size);

    Long unreadCount(Integer userId);

    NotifictionDTO read(Long notificationId, User user);
}
